import { ActionDesc, PagesKey } from '@/global/constant'
import { IContentConfig, TableItemType } from '@/components/page-content/type'

const questionContent: IContentConfig = {
  pageKey: PagesKey.ClassifyQuestion,
  tableConfig: {
    // bordered: true
    size: 'small',
    scroll: {
      // x: 1980
    },
    rowKey: 'classifyQuestionId'
  },
  isShowPagination: false,
  isShowRowSelection: false,
  isShowMoreAction: true,
  moreActions: [
    { key: ActionDesc.Edit, label: '修改' },
    { key: ActionDesc.Delete, label: '删除' }
  ],
  isShowAddBtn: true,
  isShowBatchBtn: false,
  tableItems: [
    {
      type: TableItemType.Column,
      title: '分类名字',
      dataIndex: 'name'
    },
    {
      type: TableItemType.Column,
      title: '级别',
      dataIndex: 'classifyType',
      customkey: 'classifyType'
    },
    {
      type: TableItemType.Column,
      title: '分类图标',
      dataIndex: 'svgName'
    },
    {
      type: TableItemType.Column,
      title: '创建时间',
      dataIndex: 'createTime'
    },
    {
      type: TableItemType.Column,
      title: '创建人',
      dataIndex: 'createBy'
    },
    {
      type: TableItemType.Column,
      title: '更新时间',
      dataIndex: 'updateTime'
    },
    {
      type: TableItemType.Column,
      title: '更新人',
      dataIndex: 'updateBy'
    }
  ]
}

export default questionContent
